import axios from "axios";

import JsonServer from "../../src/index";
import "./index.mock";

describe("deleteOne", () => {
    it("correct response", async () => {
        const { data } = await JsonServer(
            "https://api.nestjsx-crud.refine.dev",
            axios,
        ).deleteOne({
            resource: "posts",
            id: "99d8ae54-432c-48d4-a385-f0ff4665e448",
        });

        expect(data).toEqual("");
    });
});
